package com.example.plant.service;

import org.ksoap2.serialization.PropertyInfo;

public abstract class HttpHandler {
	public String operation;
	public PropertyInfo params;
	
	public HttpHandler(String operationName, PropertyInfo parameters) {
		this.operation = operationName;
		this.params = parameters;
	}

	public abstract void onResponse(int errorCode, String result);

	public void execute() {
		new AsyncSoapTask(this).execute();
	}

}